package fr.charlott.core.repository.model;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
@DiscriminatorValue("Cliente")
public class Cliente extends Personne{

	private boolean individuelle;
	
	@ManyToOne
	@JoinColumn(name="hotesse_id")
	private Hotesse hotesse;
	
	// constructeurs
	public Cliente() {
		super();
	}

	public boolean isIndividuelle() {
		return individuelle;
	}

	public void setIndividuelle(boolean individuelle) {
		this.individuelle = individuelle;
	}

	public Hotesse getHotesse() {
		return hotesse;
	}

	public void setHotesse(Hotesse hotesse) {
		this.hotesse = hotesse;
	}
}
